package com.paginasenlanube.model;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;


@Entity
@Table(name = "website")

public class Website implements Serializable{
	
  
  private static final long serialVersionUID = 1L;

  private long id;
	
  private String domain;

  private User user;

  private Design design;

  private Menu menu;

  private Header header;

  private SocialFeed socialFeed;

  public Website(){
	  
  }

  public String getDomain() {
    return domain;
  }

  public void setDomain(String value) {
    domain = value;
  }

  @OneToOne(cascade = CascadeType.ALL)
  public SocialFeed getSocialFeed() {
    return socialFeed;
  }

  public void setSocialFeed(SocialFeed value) {
    socialFeed = value;
  }

  @Id
  @GeneratedValue
  @Column(name = "id")
  public long getId() {
    return id;
  }

  public void setId(long value) {
    id = value;
  }

  @OneToOne(cascade = CascadeType.ALL)
  public Menu getMenu() {
	return menu;
  }

  public void setMenu(Menu menu) {
	this.menu = menu;
  }

  @ManyToOne(cascade = CascadeType.ALL)
  @JoinColumn(name = "user_id")
  public User getUser() {
	return user;
  }

  public void setUser(User user) {
	this.user = user;
  }

  @ManyToOne(cascade = CascadeType.ALL)
  public Design getDesign() {
	return design;
  }

  public void setDesign(Design design) {
	this.design = design;
  }

  @ManyToOne(cascade = CascadeType.ALL)
  public Header getHeader() {
	return header;
  }

  public void setHeader(Header header) {
	this.header = header;
  }

}
